[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 clrscr()                Clears Screen

 #include   <conio.h>

 void       clrscr(void);

    clrscr() erases everything in the current text window. The cursor is
    placed in the upper left corner at coordinates (1,1).

       Returns:     Nothing.

   Portability:     IBM PC and compatibles only.

   -------------------------------- Example ---------------------------------
    The following statements fill the screen with characters, then clear
    the screen.

           #include <conio.h>

           main()
           {
               int x, y;

               for (y = 0; y < 20; y++) {
                   for (x = 65; x < 91; x++)
                       printf("%c",x);
                   printf("\n");
               }
               getch();
               clrscr();
           }

See Also: clreol() delline() window()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson